﻿using System.ComponentModel.DataAnnotations;

namespace RuoVea.ExSugar.Dto;

/// <summary>
/// 主键Id映射DTO
/// </summary>
public class BaseId
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Display(Name = "主键Id")]
    [Required(ErrorMessage = "Id不能为空")]
    [DataValidation(ValidationTypes.Numeric)]
    public long Id { get; set; }
}